Feature: Creating churches
  In order to have churches to assign giving to
  As a user
  I want to create them easily
  
  Background:
    Given I am on the homepage
    When I follow "Admin"
    When I follow "Churches"
    When I follow "New Church"
  
  Scenario: Creating a church
    And I fill in "Name" with "My Church"
    And I fill in "Address" with "My Address"
    And I fill in "City" with "My City"
    And I select "North Carolina" from "State"
    And I fill in "Zip code" with "12345-6789"
    And I press "Submit"
    Then I should see "Church was successfully created."
    And I should be on the church page for "My Church"
    And I should see "My Church"
    And I should have 1 churches
  
  Scenario: Creating a church without a name
    And I press "Submit"
    Then I should see "Correct the following errors and try again."
    And I should see "Name can't be blank"
    And I should see "Address can't be blank"
    And I should see "City can't be blank"
    And I should see "State can't be blank"
    And I should see "Zip code can't be blank"